<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>BaseChart.setSearchPath</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="BaseChart.htm">BaseChart</a>.<wbr>setSearchPath</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setSearchPath(String path)
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the search path for loading image files.<br><br>
Many ChartDirector APIs expect a path for loading a file. Examples include <a href="BaseChart.setBgImage.htm">BaseChart.setBgImage</a> and the <a href="cdml.htm">CDML</a>, the &lt;*img*&gt; tag.<br><br>
If the image path is a relative path, the setSearchPath allows you to set the location(s) to search for the image file. Its effect is to prepend the search path to the image path. For example, if the search path is "/aaa/bbb" and the image path is "nnn/mmm.png", the resulting path would be "/aaa/bbb/nnn/mmm.png". You can specify multiple search paths by separating them with the path separator of the operating system (";" for Windows and ":" for Linux/UNIX).<br><br>
Please refer to <a href="pathspec.htm">Path Specification</a> on how ChartDirector interprets pathnames.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>path</td><td>(Mandatory)</td><td>A list of paths, separated with the path separator of the operating system (";" for Windows, ":" for Linux/UNIX).</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
